Skip to content

chore(m5): drop CLI connector subcommands#114

Merged
graydawnc merged 2 commits intomainfrom
chore/m5-pr3-cli
Apr 28, 2026
Merged

chore(m5): drop CLI connector subcommands#114
graydawnc merged 2 commits intomainfrom
chore/m5-pr3-cli

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

@graydawnc graydawnc commented Apr 28, 2026

Summary

Continuation of #112 / #113. Removes the spool connector ... CLI surface. The other CLI commands (search, sync, list, status, show) are untouched.

Changes

  • Delete packages/cli/src/commands/connector.ts (489 lines) and connector-shared.ts (106 lines)
  • Drop connectorCommand import + registration from src/index.ts
  • Strip 5 describe('connector ...') blocks from cli.test.ts (install / sync / list / status / uninstall / update)
  • Trim SCHEMA_SQL test fixture: remove 'connector' source row + captures / captures_fts / captures_fts_trigram / capture_connectors / connector_sync_state tables and their indexes
  • Update packages/cli/README.md: drop the "Connector management" + "Available connectors" sections, update the tagline, and remove the captures/connectors mentions from the data-location section

-770 / +3 net.

Out of scope (cross-cutting docs — landing site, root README, docs/connector-*.md, design docs) — these will be batched in a later docs pass.

Features that should still work post-PR (verified)

Feature Verification
spool --help Lists 5 commands: search / sync / list / status / show — no connector
spool connector ... Exits 1 with error: unknown command 'connector'
spool sync Indexes Claude fixture (5 sessions added)
spool status Reports 5 total (claude: 5, codex: 0, gemini: 0) against the seeded DB
spool list Prints the 5 indexed Claude sessions
spool search XYLOPHONE_CANARY_42 Returns the matching session with snippet
spool show <uuid> Prints full session with messages
pnpm test (cli package) 21 / 21 tests pass
pnpm build (cli package) clean tsc + chmod

Test plan

  • pnpm exec tsc clean (cli package)
  • pnpm test passes (21 tests, 0 failures, 16 connector tests removed with their describes)
  • Manual smoke against built bin/spool.js for each surviving command (table above)
  • Confirmed spool connector list now exits 1 with the expected commander error
  • packages/cli/README.md reviewed — every remaining example matches a still-existing command

🤖 Generated with Claude Code

PR3 of M5. Removes the spool connector CLI surface; remaining commands
(search, sync, list, status, show) are unchanged.

- Delete packages/cli/src/commands/connector.ts (489 lines)
- Delete packages/cli/src/commands/connector-shared.ts (106 lines)
- Drop connectorCommand registration from src/index.ts
- Strip 5 connector describe blocks (install/sync/list/status/uninstall/update) from cli.test.ts
- Trim SCHEMA_SQL fixture: remove 'connector' source row, captures /
  captures_fts / captures_fts_trigram / capture_connectors /
  connector_sync_state tables and indexes

Net: -748 / +1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc changed the title chore(m5): drop CLI connector subcommands (PR3 of 7) chore(m5): drop CLI connector subcommands Apr 28, 2026
The connector subcommands no longer exist (this branch); strip the
"Connector management" + "Available connectors" sections, update the
tagline, and drop the captures/connectors mentions from the data
location section.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc merged commit 7a5ee49 into main Apr 28, 2026
4 checks passed
@graydawnc graydawnc deleted the chore/m5-pr3-cli branch April 28, 2026 09:12
graydawnc added a commit that referenced this pull request Apr 28, 2026
The 0.4.0 npm publish shipped stale dist artifacts (commands/connector.js
and connector-shared.js from before #114 deleted them, plus core's
connectors/ subtree from before #115). tsc only writes new files; it
does not delete outputs whose source has been removed. The published
tarballs were functional (the CLI entry doesn't import the orphans)
but ~37 kB heavier than they should be.

Fix: prepend `pnpm run clean` (already defined as `rm -rf dist`) to
the build script so every fresh build starts from an empty dist/.
Verified locally — cli dist now contains only the 5 surviving
commands and core dist no longer carries a connectors/ tree.

Bump cli + core to 0.4.1 so the clean build can be published. App,
landing, and root version stay at 0.4.0 — the Electron release on
GitHub is unaffected by this fix and we don't need to cut another
DMG just for npm hygiene.

Co-authored-by: Chen <99816898+donteatfriedrice@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant